package corejava2;

import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

/**
 * 从键盘上输入若干个整数，去掉重复元素后从小到大打印出来
 */
public class SortAndUniqueNumbers3 {
    public static void main(String[] args) {

        Scanner cin = new Scanner(System.in);
        // Set<Integer> a=new HashSet<>();
        Set<Integer> a = new TreeSet<>();
        while (cin.hasNext()) {
            a.add(cin.nextInt());
        }

        System.out.println(a);
    }

}
